package com.miage.bean;

public class Participant {

	private Integer id;
	private String nom;
	private String prenom;
	private float montantCpte;
	
	private Integer idEvenement; 		// version 1.0
	
	public Participant() {
		super();
	}

	public Participant(Integer id, String nom, String prenom, float montantCpte, Integer idEvenement) {
		super();
		this.id = id;
		this.nom = nom;
		this.prenom = prenom;
		this.montantCpte = montantCpte;
		this.idEvenement = idEvenement;
	}
	
	public Participant(Integer id, String nom) {
		super();
		this.id = id;
		this.nom = nom;
		this.prenom = null;
		this.montantCpte = 0;
		this.idEvenement = null;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getPrenom() {
		return prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public float getMontantCpte() {
		return montantCpte;
	}

	public void setMontantCpte(float montantCpte) {
		this.montantCpte = montantCpte;
	}

	public Integer getIdEvenement() {
		return idEvenement;
	}

	public void setIdEvenement(Integer idEvenement) {
		this.idEvenement = idEvenement;
	}

	@Override
	public String toString(){
		
		return this.prenom+" "+this.nom;
	}
}
